package com.jia.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 杜佳佳
 * @since 2021-05-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ChatFriend对象", description="")
public class ChatFriend implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户好友关系表id")
    private String id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "好友id")
    private String friendId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "状态1好友2拉黑3删除拉黑4特别关心")
    private Integer status;

    @ApiModelProperty(value = "删除1删除")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "用户好友信息")
    @TableField(exist = false)
    private SysUser sysUser;

}
